package com.example.controller;


import com.example.common.result.Result;
import com.example.entity.vo.InvmaVo;
import com.example.mapper.InvmaMapper;
import com.example.service.InvmaService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-02-29
 */
@Slf4j
@RestController
@RequestMapping("/api/invma")
@Api(tags = "品号类别相关接口")
public class InvmaController {
    @Resource
    private InvmaService invmaService;

    @Resource
    private InvmaMapper invmaMapper;

    @ApiOperation("财务品号列表信息列")
    @GetMapping("/invmaOneList")
    public Result<List<InvmaVo>> invmaOneList(){
        List<InvmaVo> list = invmaMapper.selectInvmaVo();
        return Result.success(list);
    }

}
